import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'
import permissionType from "@/utils/permissionType";

const BASICDATA: AppRouteRecordRaw = {
  path: '/basicdata',
  name: 'basicdata',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '基础数据',
    requiresAuth: true,
    icon: 'icon-folder',
    order: 2,
  },
  children: [
    {
      path: 'rymp',
      name: 'rymp',
      component: () => import('@/views/basic/rymp/index.vue'),
      meta: {
        locale: '人员映射',
        requiresAuth: true,
        roles: [permissionType.sysAdmin, permissionType.renYuanMapping],
      },
    },
  ],
}

export default BASICDATA
